package com.learn._01mvcboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class CartsController {

    @RequestMapping("/v1/carts/add")
    @ResponseBody
    public String addCarts(){
        return "添加购物车成功";
    }

    @RequestMapping("/v1/carts/select")
    @ResponseBody
    public String selectCarts(){
        return "查看购物车成功";
    }
}
